﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Department
{
    public class UpdateDepartmentInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空！")]
        public Guid Id { get; set; }

        /// <summary>
        /// 父节点Id
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Required(ErrorMessage = "部门名称不能为空！")]
        public string Name { get; set; }

        /// <summary>
        /// 状态 true启用 false禁用
        /// </summary>
        [Required(ErrorMessage = "状态不能为空！")]
        public bool Status { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Required(ErrorMessage = "排序不能为空！")]
        public decimal Sort { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

    }
}
